package com.xdjj.market.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdjj.market.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    @Select("select * from employee where account = #{account}")
    Employee selectByEmployeeAccount (String account);

    @Update("update employee set password = #{password} where account = #{account}")
    void updatePwdByEmployeeAccount(String account, String password);
}
